<template>
  <div>
    <!-- 头部tab -->
    <div class="top_tab">
      <div class="left" @click="back()">
        <img  src="../assets/order_center/shangs.png">
      </div>
      <span>音效与通知</span>
      <div class="right">
      </div>
    </div>
    <div class="center">
			<div class="box">
				<div class="info">
					<span>声音</span>
					<div>
						<yd-switch v-model="switch1" color="#e63f3f"></yd-switch>
					</div>
				</div>
			</div>
			<div class="box">
				<div class="info">
					<span>震动</span>
					<div>
						<yd-switch v-model="switch1" color="#e63f3f"></yd-switch>
					</div>
				</div>
			</div>
			<div class="box">
				<div class="info s">
					<span>新消息提示</span>
					<span class="xt">跟随系统</span>
				</div>
			</div>
    </div>
    <div class="center">
			<div class="box">
				<div class="info">
					<span>勿扰模式</span>
					<div>
						<yd-switch v-model="switch1" color="#e63f3f"></yd-switch>
					</div>
				</div>
			</div>
    </div>
  </div>
</template>

<script>
import Vue from 'vue';
import {Switch} from 'vue-ydui/dist/lib.rem/switch';
Vue.component(Switch.name, Switch);
export default {
  name: 'inform',
  data () {
    return {
     index:0,
     isshow:false
    }
  },
  methods:{
    back: function() {
      this.$router.go(-1);
		},
		addressClick:function(){
			this.$router.push("address");
		},
		set_phoneClick:function(){
			this.$router.push("set_phone");
		},
		setpwdClick:function(){
			this.$router.push("setpwd");
		}
  }
}
</script>


<style scoped>

.top_tab{
  width:100%;
  padding:.2rem .3rem;
  background: #FFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: .01rem .01rem .06rem #ddd;
  margin-bottom: .01rem;
}
.top_tab span{
  color:#333;
  font-size: .36rem;
}
.top_tab .right{
	width: 1rem;
	display: flex;
	justify-content: space-between;
}
.top_tab  img{
  width:.43rem;
}
.center{
	width:100%;
	margin-top: .2rem;
}
.center .box{
	width:100%;
	height:1.11rem;
	background: #FFF;
	display: flex;
	padding: 0 .3rem;
	justify-content: space-between;
	align-items: center;
}
.center .box .info{
	width:100%;
	height:100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
}
.s{
	border: none !important;
}
.center .box .info span{
	font-size: .28rem;
	color:#333;
	vertical-align: middle;
}
.center .box .info .xt{
	color:#999999;
}
.center .box .info img{
	width:.18;
	height:.30rem;
	vertical-align: middle;
}
</style>
